#ifndef __THEADWIDGET_H__
#define __THEADWIDGET_H__

#include "stdafx.h"

class TMainWindow;
class TToolButton;
class THeadWidget : public QWidget
{
    Q_OBJECT
        typedef QWidget _Base;
public:
    THeadWidget(QWidget *parent);
    ~THeadWidget();
protected:
    virtual bool event(QEvent *e);
public slots:
    void MinimizeWindow();
    void MaximizeWindow();
    void CloseWindow();
    void FullScreen();
protected:
    QWidget *m_logo;
    TToolButton* m_btnHome;
    TToolButton* m_btnMinimize;
    TToolButton* m_btMmaximize;
    TToolButton* m_btnClose;
    TMainWindow* m_mainWindow;

    bool m_bPressing;
};

#endif //__THEADWIDGET_H__
